<?


$friends = $this->friends;
$user = $this->user;
if(!empty($friends) && $user['showlastfriendsonline']){
	?>
	<div class="letzte_freunde">
		<div class="letzte_freunde_Uberschrift">Aktive <a href="<?php echo $this->baseUrl(); ?>/Friendlist/showfriendlist/viewbarid/<?php echo $userid;?>">Freunde:</a></div>
		<div class="letzte_freunde_Text">
					
			<?php 
			foreach($friends as $array){
				echo "<a href='" . $this->baseUrl() . "/Pinnwand/view/viewbarid/" . $array['id'] . "'>";
				if(!empty($array['bildklein'])){
					echo $array['vorname'] . "<br />";
					echo "<img src='" . $this->baseUrl() . "/Bilder/ProfilBildUser/" . $array['bildklein'] . "'><br />";
				}
				else{
					echo $array['vorname'] . "<br />";
				}
				echo "</a>";
			}
			?>
		</div>
	</div>
	<?php 
}
